Component({
  properties: {
    show: {
      type: Boolean,
      value: false
    },
    cardIndex: {
      type: Array,
      value: [0]
    },
    cardType: {
      type: Array,
      value: ['身份证', '港澳通行证', '护照']
    }
  },

  data: {

  },

  methods: {
    hide() {
      this.setData({
        show: false
      });
    },

    bindChange(e) {
      let {
        value
      } = e.detail;
      this.setData({
        cardIndex: value
      });
    },

    confirm() {
      this.triggerEvent('confirm', {
        cardIndex: this.data.cardIndex
      }, {});
    }
  }
})